import axios from "./axios";
import { processResponse } from "./util";

export default {
  noticeList(query) {
    return processResponse(axios.get("/notice/query", { query }));
  },
  deleteList(id, query) {
    return processResponse(axios.delete("/notice/" + id, { query }));
  },
  noticeAdd(query) {
    return processResponse(axios.post("/notice",  query ));
  },
  loginAuth(query) {
    return processResponse(axios.post("/auth/login",  query ));
  }
};
